#include <iostream>
#include <string>
using namespace std;

class Student{
	private:
		int num;
		string name;
		char sex;
	public:
		void set();
		void display();
		
};

void Student::set(){
	cout<<"请输入";
	cin>>num>>name>>sex;
}

void Student::display(){
	cout<<"num:"<<num<<endl;
	cout<<"name:"<<name<<endl;
	cout<<"sex:"<<sex<<endl;
}

int main(){
	Student stu;
	stu.set();
	stu.display();
	return 0;
}
